package info.jic;

import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JTextField;

public class ChannelTextBox extends JPanel
{
	private static final long serialVersionUID = 4101718448087524909L;
	
	JTextField field;
	JTextArea area;
	JScrollPane spane;
	String str;

	public ChannelTextBox()
	{
		str = "";
		
		area = new JTextArea(str, 25, 50);
		spane = new JScrollPane(area);

		this.add(spane);
	}
	
	public void addLine(String str)
	{
		this.str = str + "\n";
		area.setText(area.getText() + str + "\n"); 
		
	}
	
	public void clear()
	{
		str = "";
		area.setText(str);
	}
}
